home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 January / PCWorld_2007-01_cd.bin / v cisle / widget / widget.exe / Smarter_Stickies.widget / Smarter Stickies.widget / Contents / Smarter Stickies.kon < prev    next >
Extensible Markup Language  |  2006-07-27  |  5KB  |  155 lines

  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <?konfabulator xml-strict="true"?>
  3. <widget version="1.3" minimumVersion="3.0" defaultTracking="rectangle">
  4.  
  5.     <author>William C Barnes</author>
  6.     <copyright>Copyright ⌐2006 William C. Barnes - All Rights Reserved</copyright>
  7. <!-- 
  8.     Issues:
  9.     
  10.         Smarter Stickies has not been tested on the macintosh platform.
  11.         I am doubtful that all the features will work, particularly
  12.         help and alarm sound selection.  While I use onMultiClick, all
  13.         functionality is accessible through context menus.
  14.  
  15.         I'm packaging this in the older zip format because the newer
  16.         flat file format combined with an apparent bug in the file
  17.         selector makes selecting the sound files I provide impossible.
  18.         In the flat format, you must use widget.extractFile() to make 
  19.         files accessible to the file selector - It returns an absolute
  20.         path to the file.   The problem is that Preference.directory
  21.         (and FormField.directory) don't seem to work with absolute 
  22.         paths in windows ("C:/anything" defaults to "My Documents"
  23.         in the file selection dialog).  I've searched the support
  24.         forums and see the file selection problem mentioned
  25.         several times but no hint of a real solution.
  26. -->
  27.  
  28.     <about-box>
  29.         <image>about.png</image>
  30.         <about-version
  31.             hOffset="64"
  32.             vOffset="109"
  33.         >
  34.         </about-version>
  35.     </about-box>
  36.     
  37.     <window name="stickyPad" title="Smarter Stickies"></window>
  38.     
  39.     <preference name="disclaimerAccept" hidden="1"/>
  40.     <preference name="noteWidth" hidden="1" defaultValue="150"/>
  41.     <preference name="noteHeight" hidden="1" defaultValue="150"/>
  42.     <preference name="noteHoffset" hidden="1" />
  43.     <preference name="noteVoffset" hidden="1" />
  44.     <preference name="font" defaultValue="Comic sans MS" hidden="1" />                        
  45.     <preference name="textSize" defaultValue="18" hidden="1" />                        
  46.     <preference name="textColor" defaultValue="#000000" hidden="1" />                        
  47.     <preference name="noteColor" defaultValue="#FFFF60" hidden="1" />                        
  48.     <preference name="borderColor" defaultValue="#FFFF90" hidden="1" />                        
  49.     <preference name="activeColor" defaultValue="#F0F000" hidden="1" />                        
  50.     <preference
  51.         name="almSound"
  52.         type="selector"
  53.         defaultValue="BEEPPAGER.WAV"
  54.         style="open"
  55.         title="Alarm Sound"
  56.         description="Sound to be played when an alarm occurs."
  57.         directory="."
  58.         >
  59.         <kind>files</kind>
  60.         <extension>.wav</extension>
  61.         <extension>.au</extension>
  62.         <extension>.snd</extension>
  63.         <extension>.mp3</extension>
  64.     </preference>                        
  65.     <preference
  66.         name="padColor"
  67.         type="color"
  68.         defaultValue="#FFFF60"
  69.         title="Pad Color"
  70.         description="Color of the pad, unless the following option is set."
  71.     />                        
  72.     <preference
  73.         name="defaultColorPad"
  74.         type="checkbox"
  75.         defaultValue="0"
  76.         title="Set pad color to default sticky color."
  77.     />                        
  78.     <preference
  79.         name="hidePadOnStartup"
  80.         type="checkbox"
  81.         defaultValue="0"
  82.         title="Hide pad on startup"
  83.         description="To make the pad visible, select Smarter Stickies from the Yahoo Widget Engine context menu."
  84.     />                        
  85.     <preference
  86.         name="setItems"
  87.         type="popup"
  88.         defaultValue="0"
  89.         title="Values:"
  90.         description="The following options will change these values."
  91.         notSaved="true"
  92.         >
  93.         <option>Colors</option><optionValue>0</optionValue>
  94.         <option>Colors and Typeface</option><optionValue>1</optionValue>
  95.         <option>Colors, Typeface and size</option><optionValue>2</optionValue>
  96.         <option>Almost everything</option><optionValue>3</optionValue>
  97.     </preference>                        
  98.     <preference
  99.         name="setFactoryDefaults"
  100.         type="checkbox"
  101.         defaultValue="0"
  102.         title="Set defaults to original values."
  103.         notSaved="true"
  104.     />                        
  105.     <preference
  106.         name="setVisible"
  107.         type="checkbox"
  108.         defaultValue="0"
  109.         title="Set visible stickies to default values."
  110.         notSaved="true"
  111.     />
  112.     
  113.     <preferenceGroup name="hotkeys" title="Hotkeys"/>
  114.     <preference
  115.         group="hotkeys"
  116.         name="newKey"
  117.         type="hotkey"
  118.         title="New Sticky"
  119.     />                        
  120.     <preference
  121.         group="hotkeys"
  122.         name="searchKey"
  123.         type="hotkey"
  124.         title="Search Stickies"
  125.     />                        
  126.     <preference
  127.         group="hotkeys"
  128.         name="hideShowKey"
  129.         type="hotkey"
  130.         title="Hide/Show All Stickies"
  131.     />                        
  132.     <preference
  133.         group="hotkeys"
  134.         name="deleteKey"
  135.         type="hotkey"
  136.         title="Delete Sticky"
  137.         description="Please read the Hotkeys section of the help file before assigning these keys."
  138.     />                        
  139.  
  140.     <action trigger="onLoad" file="stickies.js"/>
  141.  
  142.     <action trigger="onUnload"> <![CDATA[
  143.         saveall();                                        
  144.     ]]>    </action>
  145.  
  146.     <action trigger="onWakeFromSleep"> <![CDATA[
  147.         wakeup();                                        
  148.     ]]>    </action>
  149.  
  150.     <action trigger="onPreferencesChanged"> <![CDATA[                                            
  151.         applyPreferences();                                        
  152.     ]]>    </action>
  153.  
  154. </widget>
  155.